package com.shanghai.shanghaielectric.Model.db;

import org.litepal.crud.DataSupport;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import shanghaielectric_lib.Utils.DateUtil;

/**
 * Created by 45000460 on 2017/12/19.
 */

public class ReportDateModel_1h extends DataSupport {
    public int id;
    public long date;

    public long date_systemPF_Max_All;
    public long date_systemPF_Min_All;

    public double systemPF_Max_All;
    public double systemPF_Min_All;
    public double systemPF_AVG_All;

    public double systemPF_Max_A;
    public double systemPF_Max_B;
    public double systemPF_Max_C;

    public double systemPF_Min_A;
    public double systemPF_Min_B;
    public double systemPF_Min_C;

    public double systemPF_AVG_A;
    public double systemPF_AVG_B;
    public double systemPF_AVG_C;

    public double loadPF_Max_A;
    public double loadPF_Max_B;
    public double loadPF_Max_C;

    public double loadPF_Min_A;
    public double loadPF_Min_B;
    public double loadPF_Min_C;

    public double loadPF_AVG_A;
    public double loadPF_AVG_B;
    public double loadPF_AVG_C;

    public double systemActivePower_Max_A;
    public double systemActivePower_Max_B;
    public double systemActivePower_Max_C;

    public double systemActivePower_Min_A;
    public double systemActivePower_Min_B;
    public double systemActivePower_Min_C;

    public double systemActivePower_AVG_A;
    public double systemActivePower_AVG_B;
    public double systemActivePower_AVG_C;

    public double systemReActivePower_Max_A;
    public double systemReActivePower_Max_B;
    public double systemReActivePower_Max_C;

    public double systemReActivePower_Min_A;
    public double systemReActivePower_Min_B;
    public double systemReActivePower_Min_C;

    public double systemReActivePower_AVG_A;
    public double systemReActivePower_AVG_B;
    public double systemReActivePower_AVG_C;
    public int systemEvent;// 1 表示 今日有故障发生   0 表示无

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public long getDate_systemPF_Max_All() {
        return date_systemPF_Max_All;
    }

    public void setDate_systemPF_Max_All(long date_systemPF_Max_All) {
        this.date_systemPF_Max_All = date_systemPF_Max_All;
    }

    public long getDate_systemPF_Min_All() {
        return date_systemPF_Min_All;
    }

    public void setDate_systemPF_Min_All(long date_systemPF_Min_All) {
        this.date_systemPF_Min_All = date_systemPF_Min_All;
    }

    public double getSystemPF_Max_All() {
        return systemPF_Max_All;
    }

    public void setSystemPF_Max_All(double systemPF_Max_All) {
        this.systemPF_Max_All = systemPF_Max_All;
    }

    public double getSystemPF_Min_All() {
        return systemPF_Min_All;
    }

    public void setSystemPF_Min_All(double systemPF_Min_All) {
        this.systemPF_Min_All = systemPF_Min_All;
    }

    public double getSystemPF_AVG_All() {
        return systemPF_AVG_All;
    }

    public void setSystemPF_AVG_All(double systemPF_AVG_All) {
        this.systemPF_AVG_All = systemPF_AVG_All;
    }

    public double getSystemPF_Max_A() {
        return systemPF_Max_A;
    }

    public void setSystemPF_Max_A(double systemPF_Max_A) {
        this.systemPF_Max_A = systemPF_Max_A;
    }

    public double getSystemPF_Max_B() {
        return systemPF_Max_B;
    }

    public void setSystemPF_Max_B(double systemPF_Max_B) {
        this.systemPF_Max_B = systemPF_Max_B;
    }

    public double getSystemPF_Max_C() {
        return systemPF_Max_C;
    }

    public void setSystemPF_Max_C(double systemPF_Max_C) {
        this.systemPF_Max_C = systemPF_Max_C;
    }

    public double getSystemPF_Min_A() {
        return systemPF_Min_A;
    }

    public void setSystemPF_Min_A(double systemPF_Min_A) {
        this.systemPF_Min_A = systemPF_Min_A;
    }

    public double getSystemPF_Min_B() {
        return systemPF_Min_B;
    }

    public void setSystemPF_Min_B(double systemPF_Min_B) {
        this.systemPF_Min_B = systemPF_Min_B;
    }

    public double getSystemPF_Min_C() {
        return systemPF_Min_C;
    }

    public void setSystemPF_Min_C(double systemPF_Min_C) {
        this.systemPF_Min_C = systemPF_Min_C;
    }

    public double getSystemPF_AVG_A() {
        return systemPF_AVG_A;
    }

    public void setSystemPF_AVG_A(double systemPF_AVG_A) {
        this.systemPF_AVG_A = systemPF_AVG_A;
    }

    public double getSystemPF_AVG_B() {
        return systemPF_AVG_B;
    }

    public void setSystemPF_AVG_B(double systemPF_AVG_B) {
        this.systemPF_AVG_B = systemPF_AVG_B;
    }

    public double getSystemPF_AVG_C() {
        return systemPF_AVG_C;
    }

    public void setSystemPF_AVG_C(double systemPF_AVG_C) {
        this.systemPF_AVG_C = systemPF_AVG_C;
    }

    public double getLoadPF_Max_A() {
        return loadPF_Max_A;
    }

    public void setLoadPF_Max_A(double loadPF_Max_A) {
        this.loadPF_Max_A = loadPF_Max_A;
    }

    public double getLoadPF_Max_B() {
        return loadPF_Max_B;
    }

    public void setLoadPF_Max_B(double loadPF_Max_B) {
        this.loadPF_Max_B = loadPF_Max_B;
    }

    public double getLoadPF_Max_C() {
        return loadPF_Max_C;
    }

    public void setLoadPF_Max_C(double loadPF_Max_C) {
        this.loadPF_Max_C = loadPF_Max_C;
    }

    public double getLoadPF_Min_A() {
        return loadPF_Min_A;
    }

    public void setLoadPF_Min_A(double loadPF_Min_A) {
        this.loadPF_Min_A = loadPF_Min_A;
    }

    public double getLoadPF_Min_B() {
        return loadPF_Min_B;
    }

    public void setLoadPF_Min_B(double loadPF_Min_B) {
        this.loadPF_Min_B = loadPF_Min_B;
    }

    public double getLoadPF_Min_C() {
        return loadPF_Min_C;
    }

    public void setLoadPF_Min_C(double loadPF_Min_C) {
        this.loadPF_Min_C = loadPF_Min_C;
    }

    public double getLoadPF_AVG_A() {
        return loadPF_AVG_A;
    }

    public void setLoadPF_AVG_A(double loadPF_AVG_A) {
        this.loadPF_AVG_A = loadPF_AVG_A;
    }

    public double getLoadPF_AVG_B() {
        return loadPF_AVG_B;
    }

    public void setLoadPF_AVG_B(double loadPF_AVG_B) {
        this.loadPF_AVG_B = loadPF_AVG_B;
    }

    public double getLoadPF_AVG_C() {
        return loadPF_AVG_C;
    }

    public void setLoadPF_AVG_C(double loadPF_AVG_C) {
        this.loadPF_AVG_C = loadPF_AVG_C;
    }

    public double getSystemActivePower_Max_A() {
        return systemActivePower_Max_A;
    }

    public void setSystemActivePower_Max_A(double systemActivePower_Max_A) {
        this.systemActivePower_Max_A = systemActivePower_Max_A;
    }

    public double getSystemActivePower_Max_B() {
        return systemActivePower_Max_B;
    }

    public void setSystemActivePower_Max_B(double systemActivePower_Max_B) {
        this.systemActivePower_Max_B = systemActivePower_Max_B;
    }

    public double getSystemActivePower_Max_C() {
        return systemActivePower_Max_C;
    }

    public void setSystemActivePower_Max_C(double systemActivePower_Max_C) {
        this.systemActivePower_Max_C = systemActivePower_Max_C;
    }

    public double getSystemActivePower_Min_A() {
        return systemActivePower_Min_A;
    }

    public void setSystemActivePower_Min_A(double systemActivePower_Min_A) {
        this.systemActivePower_Min_A = systemActivePower_Min_A;
    }

    public double getSystemActivePower_Min_B() {
        return systemActivePower_Min_B;
    }

    public void setSystemActivePower_Min_B(double systemActivePower_Min_B) {
        this.systemActivePower_Min_B = systemActivePower_Min_B;
    }

    public double getSystemActivePower_Min_C() {
        return systemActivePower_Min_C;
    }

    public void setSystemActivePower_Min_C(double systemActivePower_Min_C) {
        this.systemActivePower_Min_C = systemActivePower_Min_C;
    }

    public double getSystemActivePower_AVG_A() {
        return systemActivePower_AVG_A;
    }

    public void setSystemActivePower_AVG_A(double systemActivePower_AVG_A) {
        this.systemActivePower_AVG_A = systemActivePower_AVG_A;
    }

    public double getSystemActivePower_AVG_B() {
        return systemActivePower_AVG_B;
    }

    public void setSystemActivePower_AVG_B(double systemActivePower_AVG_B) {
        this.systemActivePower_AVG_B = systemActivePower_AVG_B;
    }

    public double getSystemActivePower_AVG_C() {
        return systemActivePower_AVG_C;
    }

    public void setSystemActivePower_AVG_C(double systemActivePower_AVG_C) {
        this.systemActivePower_AVG_C = systemActivePower_AVG_C;
    }

    public double getSystemReActivePower_Max_A() {
        return systemReActivePower_Max_A;
    }

    public void setSystemReActivePower_Max_A(double systemReActivePower_Max_A) {
        this.systemReActivePower_Max_A = systemReActivePower_Max_A;
    }

    public double getSystemReActivePower_Max_B() {
        return systemReActivePower_Max_B;
    }

    public void setSystemReActivePower_Max_B(double systemReActivePower_Max_B) {
        this.systemReActivePower_Max_B = systemReActivePower_Max_B;
    }

    public double getSystemReActivePower_Max_C() {
        return systemReActivePower_Max_C;
    }

    public void setSystemReActivePower_Max_C(double systemReActivePower_Max_C) {
        this.systemReActivePower_Max_C = systemReActivePower_Max_C;
    }

    public double getSystemReActivePower_Min_A() {
        return systemReActivePower_Min_A;
    }

    public void setSystemReActivePower_Min_A(double systemReActivePower_Min_A) {
        this.systemReActivePower_Min_A = systemReActivePower_Min_A;
    }

    public double getSystemReActivePower_Min_B() {
        return systemReActivePower_Min_B;
    }

    public void setSystemReActivePower_Min_B(double systemReActivePower_Min_B) {
        this.systemReActivePower_Min_B = systemReActivePower_Min_B;
    }

    public double getSystemReActivePower_Min_C() {
        return systemReActivePower_Min_C;
    }

    public void setSystemReActivePower_Min_C(double systemReActivePower_Min_C) {
        this.systemReActivePower_Min_C = systemReActivePower_Min_C;
    }

    public double getSystemReActivePower_AVG_A() {
        return systemReActivePower_AVG_A;
    }

    public void setSystemReActivePower_AVG_A(double systemReActivePower_AVG_A) {
        this.systemReActivePower_AVG_A = systemReActivePower_AVG_A;
    }

    public double getSystemReActivePower_AVG_B() {
        return systemReActivePower_AVG_B;
    }

    public void setSystemReActivePower_AVG_B(double systemReActivePower_AVG_B) {
        this.systemReActivePower_AVG_B = systemReActivePower_AVG_B;
    }

    public double getSystemReActivePower_AVG_C() {
        return systemReActivePower_AVG_C;
    }

    public void setSystemReActivePower_AVG_C(double systemReActivePower_AVG_C) {
        this.systemReActivePower_AVG_C = systemReActivePower_AVG_C;
    }

    public int getSystemEvent() {
        return systemEvent;
    }

    public void setSystemEvent(int systemEvent) {
        this.systemEvent = systemEvent;
    }

    public List<String> getData(){
        List<String> stringList=new ArrayList<>();
        stringList.add(DateUtil.dateToString_yy_MM_dd(new Date(date)));
        stringList.add(date_systemPF_Max_All+"");
        stringList.add(date_systemPF_Min_All+"");
        stringList.add(systemPF_Max_All+"");
        stringList.add(systemPF_Min_All+"");
        stringList.add(systemPF_AVG_A+"");

        stringList.add(loadPF_Max_A+"");
        stringList.add(loadPF_Min_A+"");
        stringList.add(loadPF_AVG_A+"");
        stringList.add(loadPF_Max_B+"");
        stringList.add(loadPF_Min_B+"");
        stringList.add(loadPF_AVG_B+"");
        stringList.add(loadPF_Max_C+"");
        stringList.add(loadPF_Max_C+"");
        stringList.add(loadPF_Max_C+"");

        stringList.add(systemActivePower_Max_A+"");
        stringList.add(systemActivePower_Min_A+"");
        stringList.add(systemActivePower_AVG_A+"");
        stringList.add(systemActivePower_Max_B+"");
        stringList.add(systemActivePower_Min_B+"");
        stringList.add(systemActivePower_AVG_B+"");
        stringList.add(systemActivePower_Max_C+"");
        stringList.add(systemActivePower_Max_C+"");
        stringList.add(systemActivePower_Max_C+"");

        stringList.add(systemReActivePower_Max_A+"");
        stringList.add(systemReActivePower_Min_A+"");
        stringList.add(systemReActivePower_AVG_A+"");
        stringList.add(systemReActivePower_Max_B+"");
        stringList.add(systemReActivePower_Min_B+"");
        stringList.add(systemReActivePower_AVG_B+"");
        stringList.add(systemReActivePower_Max_C+"");
        stringList.add(systemReActivePower_Max_C+"");
        stringList.add(systemReActivePower_Max_C+"");

        stringList.add(systemEvent+"");

        return stringList;
    }



}
